/**
 * @author Fang Lu, fanglupku@gmail.com
 * 2011-4-12
 */
package dao.entity;

public class PageEntity {
	public static final int ALL = -1;
	public static final int NOT_CRAWLED = 0;
	public static final int CRAWLED_OK = 1;
	public static final int EXTRACT_CODE_OK = 2;
	public static final int EXTRACT_CODE_ERROR = 3;
	public static final int CRAWLED_ERROR = 99;
	private int id;
	private String link;
	private String title;
	private String meta_description;
	private String meta_keywords;
	private String content;
	private int page_type;
	private int state;
	public PageEntity(int id, String link, String title, 
			String meta_description, String meta_keywords, 
			String content, int page_type, int state){
		this.id = id;
		this.link = link;
		this.title = title;
		this.meta_description = meta_description;
		this.meta_keywords = meta_keywords;
		this.content = content;
		this.page_type = page_type;
		this.state = state;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getMeta_description() {
		return meta_description;
	}
	public void setMeta_description(String metaDescription) {
		meta_description = metaDescription;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContent() {
		return content;
	}
	public void setMeta_keywords(String meta_keywords) {
		this.meta_keywords = meta_keywords;
	}
	public String getMeta_keywords() {
		return meta_keywords;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getState() {
		return state;
	}
	public void setPage_type(int page_type) {
		this.page_type = page_type;
	}
	public int getPage_type() {
		return page_type;
	}
}
